﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Computer : Father
    {
        public Computer()
        {
        }

        public Computer(string name) : base(name)
        {
        }
        public override string chuquan()
        {
            Random r = new Random();
            int random = r.Next(1, 4);
            switch (random)
            {
                case 1:
                    Console.WriteLine("剪刀");
                    break;
                case 2:
                    return "石头";
                    break;
                case 3:
                    return "布";
                    break;

            }
            return base.chuquan();
        }
    }
}
